package com.bdqn.easybuy1.service.order;

import com.bdqn.easybuy1.entities.Order;
import com.bdqn.easybuy1.entities.OrderDetail;
import com.bdqn.easybuy1.entities.User;
import com.bdqn.easybuy1.utils.ShoppingCart;

import java.util.List;

public interface OrderService {
    Order payShoppingCart(ShoppingCart cart, User user, String address);

    List<Order> getOrderList(Integer userId,
                             Integer currentPageNo,
                             Integer pageSize);

    int count(Integer userId);

    List<OrderDetail> getOrderDetailList(Integer orderId);
}
